/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.safetytask.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;


@ApiModel(value = "自定义表单", description = "自定义表单实体类")
public class CustomForm extends BaseEntity {

    @ApiModelProperty(name = "name", value = "表格名称" )
    private String name;

    @ApiModelProperty(name = "code", value = "编码" )
    private String code;

    @ApiModelProperty(name = "keyName", value = "字段名称" )
    private String keyName;

    @ApiModelProperty(name = "keyType", value = "字段类型，1：文本、2：数字、3：枚举、4：日期……" )
    private Integer keyType;

    @ApiModelProperty(name = "enumValue", value = "枚举值" )
    private String enumValue;

    @ApiModelProperty(name = "keyLength", value = "字段长度" )
    private Integer keyLength;

    @ApiModelProperty(name = "state", value = "状态，确定1，草稿0" )
    private Integer state;

    // 字段code
    private String keyCode;

    public String getKeyCode() {
        return keyCode;
    }

    public void setKeyCode(String keyCode) {
        this.keyCode = keyCode;
    }

    // 自定义表单项集合
    private List<CustomForm> customFormList;

    public List<CustomForm> getCustomFormList() {
        return customFormList;
    }

    public void setCustomFormList(List<CustomForm> customFormList) {
        this.customFormList = customFormList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getKeyName() {
        return keyName;
    }

    public void setKeyName(String keyName) {
        this.keyName = keyName;
    }

    public Integer getKeyType() {
        return keyType;
    }

    public void setKeyType(Integer keyType) {
        this.keyType = keyType;
    }

    public String getEnumValue() {
        return enumValue;
    }

    public void setEnumValue(String enumValue) {
        this.enumValue = enumValue;
    }

    public Integer getKeyLength() {
        return keyLength;
    }

    public void setKeyLength(Integer keyLength) {
        this.keyLength = keyLength;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "CustomForm{" +
                "name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", keyName='" + keyName + '\'' +
                ", keyType=" + keyType +
                ", enumValue='" + enumValue + '\'' +
                ", keyLength=" + keyLength +
                ", state=" + state +
                ", keyCode='" + keyCode + '\'' +
                ", customFormList=" + customFormList +
                '}';
    }
}
